﻿using Microsoft.EntityFrameworkCore;
using ST.Data;
using ST.ModelVM.ProtocolSimHost;

namespace ST.Receiver.Tasks
{
    public class EquipmentAttributeVM  
    {
        /// <summary>
        /// 设备编号
        /// </summary>
        public int DeviceCode { get; set; }
        public string DeviceName { get; set; } = string.Empty;
        /// <summary>
        /// 属性编号
        /// </summary>
        public string PropCode { get; set; } = "";
        /// <summary>
        /// 属性名
        /// </summary>
         
        public string PropName { get; set; } = "";

        public string Unit { get; set; } = "";
        public byte Scale { get; set; } = 0;

        public decimal? ValueHigh { get; set; }
        public decimal? ValueLow { get; set; } 
      
        /// <summary>
        /// 字符值
        /// </summary>
        public string StrValue { get; set; } = "";
        /// <summary>
        /// 数值值
        /// </summary>
        public decimal NumValue { get; set; }
        
        public string StateValue { get; set; } = "";
        /// <summary>
        /// 状态值        正常、故障、一级报警、二级报警
        /// </summary>
        public string BJStatus { get; set; } = "";


        public DateTime UpdateTime { get; set; }
    }
}
